-- Copyright 2012 Martti Merilaid, Nicolas BARBOTIN
-- This file is part of LuaTanks.
-- 
-- LuaTanks is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
-- 
-- LuaTanks is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.
-- 
-- You should have received a copy of the GNU General Public License
-- along with LuaTanks.  If not, see <http://www.gnu.org/licenses/>.

LTanks = LTanks or {}

-- Define all net messages IDs here, from 0 to 255 inclusive
LTanks.MSG_START 				= 1
LTanks.MSG_CANCEL_CONTEST		= 2
LTanks.MSG_ACCEPT_INVITATION 	= 3
LTanks.MSG_DECLINE_INVITATION 	= 4

-- Game phase
LTanks.PHASE_WAITING	= 1 -- Waiting for other players
LTanks.PHASE_CODING		= 2 -- Players are coding their tanks
LTanks.PHASE_PLAYING	= 3 -- Fight phase !!
